QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets multimedia

TARGET = ThorPlayer
TEMPLATE = app
CONFIG += c++11 link_pkgconfig

SOURCES += \
        main.cpp \
    mainwindow.cpp \
    videorenderwidget.cpp \
    arrowrectangle.cpp \
    qavaudiooutput.cpp \
    qavplayer.cpp \
    qavcodec.cpp \
    qavframecodec.cpp \
    qavaudiocodec.cpp \
    qavvideocodec.cpp \
    qavsubtitlecodec.cpp \
    qavdemuxer.cpp \
    qavpacket.cpp \
    qavframe.cpp \
    qavstreamframe.cpp \
    qavvideoframe.cpp \
    qavaudioframe.cpp \
    qavsubtitleframe.cpp \
    qavvideobuffer_cpu.cpp \
    qavvideobuffer_gpu.cpp \
    qavstream.cpp


RESOURCES += resources.qrc

HEADERS += \
    mainwindow.h \
    videorenderwidget.h \
    arrowrectangle.h \
    qavcodec_p.h \
    qavcodec_p_p.h \
    qavframecodec_p.h \
    qavaudiocodec_p.h \
    qavvideocodec_p.h \
    qavsubtitlecodec_p.h \
    qavdemuxer_p.h \
    qavpacket_p.h \
    qavstreamframe_p.h \
    qavframe_p.h \
    qavpacketqueue_p.h \
    qavvideobuffer_p.h \
    qavvideobuffer_cpu_p.h \
    qavvideobuffer_gpu_p.h \
    qavaudioformat.h \
    qavstreamframe.h \
    qavframe.h \
    qavvideoframe.h \
    qavaudioframe.h \
    qavsubtitleframe.h \
    qavaudiooutput.h \
    qavstream.h \
    qavplayer.h


unix|win32: LIBS += -L$$PWD/../../ffmpeg/lib/x64/ -llibavcodec.dll -llibavfilter.dll -llibavdevice.dll -llibavformat.dll -llibavresample.dll \
-llibavutil.dll -llibswresample.dll -llibswscale.dll

INCLUDEPATH += $$PWD/../../ffmpeg/include $$PWD/..
DEPENDPATH += $$PWD/../../ffmpeg/include
